﻿Imports SPRemoteService.Impl

Public Class SharePointFieldTreeNode
    Inherits Windows.Forms.TreeNode

    Private ReadOnly _field As SharePointField

    Public Sub New(ByVal field As SharePointField)
        Text = field.DisplayName
        _field = field
        ImageIndex = 10
        SelectedImageIndex = 10
    End Sub

    Public ReadOnly Property Id() As String
        Get
            Return _field.Id()
        End Get
    End Property

    Public ReadOnly Property Field() As SharePointField
        Get
            Return _field
        End Get
    End Property

End Class
